﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Zen.Toolkit;

namespace Zenui.Toolkit.Examples
{
    public partial class CodeBehindTests : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Zen.Toolkit.Dialog d = new Zen.Toolkit.Dialog
            {
                Width = Unit.Pixel(500),
                Height = Unit.Pixel(500),
                Title = "Code Behind Dialog"
            };


            this.PlaceHolder1.Controls.Add(d);

        }
        
        protected void Button2_Click(object sender, ZenEventArgs e)
        {
            Zen.Toolkit.Dialog d = new Zen.Toolkit.Dialog
            {
                Width = Unit.Pixel(500),
                Height = Unit.Pixel(500),
                Title = "Code Behind Dialog"
            };

            Page.Controls.Add(d);

            
            //this.PlaceHolder1.Controls.Add(d);

        }
    }
}